D:\a\csshw\csshw\src\main.rs
Line | Count | Source |
1 | | //! Cluster SSH tool for Windows inspired by csshX - Binary |
2 | | //! --- |
3 | | //! ``` |
4 | | //! Usage: csshw.exe [OPTIONS] [HOSTS]... [COMMAND] |
5 | | //! |
6 | | //! Commands: |
7 | | //! client Subcommand that will launch a single client window |
8 | | //! daemon Subcommand that will launch the daemon window |
9 | | //! help Print this message or the help of the given subcommand(s) |
10 | | //! |
11 | | //! Arguments: |
12 | | //! [HOSTS]... Hosts to connect to |
13 | | //! |
14 | | //! Options: |
15 | | //! -u, --username <USERNAME> Optional username used to connect to the hosts |
16 | | //! -d, --debug Enable extensive logging |
17 | | //! -h, --help Print help |
18 | | //! -V, --version Print version |
19 | | //! ``` |
20 | | |
21 | | #![deny(clippy::implicit_return)] |
22 | | #![allow(clippy::needless_return, clippy::doc_overindented_list_items)] |
23 | | #![warn(missing_docs)] |
24 | | #![doc(html_no_source)] |
25 | | |
26 | | use clap::Parser as _; |
27 | | use csshw_lib::cli::{self, Args, MainEntrypoint}; |
28 | | use csshw_lib::utils::windows::DefaultWindowsApi; |
29 | | |
30 | | /// The main entrypoint of the binary |
31 | | #[tokio::main] |
32 | 0 | async fn main() { |
33 | 0 | cli::main(&DefaultWindowsApi, Args::parse(), MainEntrypoint).await; |
34 | 0 | } |